package android.longs.study.user.servlet;

import java.io.IOException;

import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import android.longs.study.base.HomeServlet;
import android.longs.study.user.service.ClassService;
import android.longs.study.user.service.UserServiceImple;

@WebServlet("/javaclass/list")
public class QueryClassServlet extends HomeServlet{

    private ClassService service = new ClassService();
    @Override
    public void doRequestFunction(HttpServletRequest request,
	    HttpServletResponse response) {

	try {
	    System.out.println("查询 课程期数 ");
	    String queryAll = service.queryAll();
	    String queryAll2 = queryAll;
	    System.out.println(queryAll2);
	    response.getWriter().write(queryAll2);
	} catch (Exception e) {
	    // TODO: handle exception
	}

    }



}
